{
    if (keyboard_check_pressed(ord("P")) or keyboard_check_pressed(vk_escape) or keyboard_check_pressed(vk_enter) or keyboard_check_pressed(vk_f2)) {
        pauseon = false;
        background_delete(pauseback); 
        if(getBossRoom() == true){
            audio_resumemusic(curMusic);
        }
        else{
            FMODInstanceSetVolume(curMusic,global.audio_music_volume/100);
        }
        if(fps!=0 && !global.clear){
            global.timestep += 2;
        }
        instance_activate_all();
    }
    //anti-cheat initialize
    date_time_previous = current_time;
    date_time = current_time;
}
